package com.zr.stock.utils;

public enum StatusEnum {
    QIYONG("启用",true),JINYONG("禁用",false);
    private StatusEnum(String label, Boolean value) {
        this.label = label;
        this.value = value;
    }

    private String label;
    private Boolean value;

    public static String getLabel(Boolean value) {
        for (StatusEnum s:StatusEnum.values()) {
            if(s.getValue()==value){
                return s.label;
            }
        }
        return null;
    }
    public String getLabel(){
        return label;
    }
    public void setLabel(String label){
        this.label=label;
    }
    public Boolean getValue(){
        return value;
    }
    public void setValue(Boolean value){
        this.value=value;
    }
}
